home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 May / SGI IRIX 6.5 Complementary Applications 2004 May.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / sbasic.jar / text / sbasic / common / 03030000.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  3.1 KB  |  38 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Date and Time Functions</title><meta name="filename" content="text/sbasic/common/03030000"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:1.499cm;}
  8.         span.Tabelle1B{
  9.                 width:16.501cm;}
  10.         tr.Tabelle11{
  11.                 }
  12.         td.Tabelle1A1{
  13.                 }
  14.         p.P1{
  15.                 }
  16.         span.fr1{
  17.                 }
  18.         </style></head><body>
  19.   
  20.   
  21.   <help:to-be-embedded Eid="datumzeit" xmlns:help="http://openoffice.org/2000/help">
  22.   <p class="Head1"><help:link Id="66506">Date and Time Functions</help:link></p>
  23.   <p class="Paragraph">The statements and functions described here are used to perform date and time calculations. With the aid of these functions, for example, you can calculate the difference between times or dates.</p>
  24.   </help:to-be-embedded>
  25.   <p class="Paragraph">Normally, it is not possible to calculate differences with either time or date functions. If you subtract the string "12:30:45" from "12:45:21" to determine the difference between the two values, this would lead to incorrect results. <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic, however, makes this possible by converting time (or date) values to continuous numeric values, thus enabling normal calculation. After calculation, special functions are used to reconvert the values to the standard time or date format.</p>
  26.   <table><tr class="Tabelle11"><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  27.       <p class="TextInTable"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="66732" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  28.      </span></th><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  29.       <p class="TextInTable">Date and time values can be combined. Converted date values never have decimal places; whereas time values consist only of decimal places. This enables date and time values to be combined by simple addition to a single floating-decimal number. <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic supports the variable type Date, which can contain a time specification consisting of both a date and time.</p>
  30.      </span></th></tr></table>
  31.   <p class="Paragraph"/>
  32.   <help:embedded Id="66392" Eid="datumswerte" xmlns:help="http://openoffice.org/2000/help"/>
  33.   <p class="Head2"/>
  34.   <help:embedded Id="66635" Eid="uhrzeiten" xmlns:help="http://openoffice.org/2000/help"/>
  35.   <p class="Head2"/>
  36.   <help:embedded Id="66476" Eid="ermitteln" xmlns:help="http://openoffice.org/2000/help"/>
  37.   <p class="Head2"/>
  38.  </body></html>